package com.ny20231079080.service;

import com.ny20231079080.entity.Student;

import java.sql.SQLException;
import java.sql.*;

public interface StudentService {

    // 保留一个 login 方法即可，避免重复定义
    Student login(String name, String password) throws Exception;

    int insertStudent(Student student) throws SQLException, ClassNotFoundException;
    int updateStudent(Student student) throws SQLException, ClassNotFoundException; // 新增
    Student findById(int studentId) throws SQLException, ClassNotFoundException;   // 新增
}

